<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSuppliersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
//        Schema::create('suppliers', function (Blueprint $table) {
//            $table->bigIncrements('id');
//            $table->string('supplier_name','64')->comment('供应商名称');
//            $table->char('supplier_no','30')->comment('供应商编号');
//            $table->tinyInteger('state')->comment('状态,0:启用,1:不启用');
//            $table->char('mobilephone',15)->comment('手机号码');
//            $table->char('phone',15)->comment('电话号码');
//            $table->char('contact',64)->comment('联系人');
//            $table->char('province',30)->comment('省');
//            $table->char('city',30)->comment('市');
//            $table->char('distrcit',30)->comment('区');
//            $table->char('detail_address',255)->comment('详细地址');
//            $table->text('remark')->comment('备注');
//            $table->timestamps();
//        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('suppliers');
    }
}
